package com.mystore.common.utils.file;

import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;

import static com.mystore.common.utils.file.PathUtils.getTrulyPath;

public class FileUtils {
    public static InputStream getFileInputStream(String virtualPath) throws IOException {
        return new BufferedInputStream(Files.newInputStream(Paths.get(getTrulyPath(virtualPath))));
    }
}
